define(function(require,exports,module){
    var G = require('./g');
    var $ = require('jquery');

    //var base = 'http://office.huo.so:9999/hitgou';
    var base = 'http://192.168.1.2:8080';
    var data = {"article":{"title":"心得文章","cover":"心得不传封面，获取文章分录中的图片","coverType":2,"summary": "上传文章第一段文字", "authorId": 2,"categoryId":1,"authorName": "作者名","authorHead":"http://7xrla2.com1.z0.glb.clouddn.com/Fm7JqXYUIgFfL6B5gp6mDX6fFSfZ?imageView2/2/w/203/h/203&e=1458271852&token=P-eBEwKxeNtH92SIYYLcf68sC2oz2THI8p2e-vaG:aNnv3DZYF1QaVdQuMg8S12sYVIQ","status":3,"goodsId":4},"entry":[{"content":"内容1","contentType":0,"orders":1}]};
    data = JSON.stringify(data);
    $.ajax({
        url : base + '/article/save' ,
        type : 'GET',
        dataType : 'jsonp',
        data : data ,
        success : function(json){
            alert(JSON.stringify(json));
        },
        error : function(){
            G.tip('数据请求失败，请重试');
            return false;
        }
    })
});